001    package jgb;
002    
003    public class RequiredArgumentMissingException extends InvalidParameterException {
004        private final String argName;
005    
006        public RequiredArgumentMissingException(String argName) {
007            this.argName = argName;
008        }
009    
010        public RequiredArgumentMissingException(String message, String argName) {
011            super(message);
012            this.argName = argName;
013        }
014    
015        public String getArgName() {
016            return argName;
017        }
018    
019        protected StringBuffer getParamMessage() {
020            final StringBuffer out = new StringBuffer();
021            out.append("Missing required <").
022                    append(argName).append("> argument.");
023    
024            return out;
025        }
026    }